package com.hyts.mvc.configure;

import com.google.common.collect.Lists;
import com.hyts.mvc.register.FilterRegistationWrapper;
import com.hyts.mvc.register.ListenerRegistationWrapper;
import com.hyts.mvc.register.ServletRegistationWrapper;
import lombok.Builder;

import java.util.List;

/**
 * project-name:coffice-toolbox
 * package-name:com.hyts.mvc.configure
 * author:Libo/Alex
 * create-date:2019-07-02 22:29
 * email:liboware@gmail.com
 * description:此类主要用于:
 */
public class WebMvcConfigurerRegistry {


    private List<ServletRegistationWrapper> servletRegistationWrappers = Lists.newLinkedList();

    private List<FilterRegistationWrapper> filterRegistationWrappers = Lists.newLinkedList();

    private List<ListenerRegistationWrapper> listenerRegistationWrappers = Lists.newLinkedList();


    public void addServletRegistation(ServletRegistationWrapper servletRegistationWrapper){
        servletRegistationWrappers.add(servletRegistationWrapper);
    }

    public void addFilterRegistation(FilterRegistationWrapper filterRegistationWrapper){
        filterRegistationWrappers.add(filterRegistationWrapper);
    }

    public void addListenerRegistation(ListenerRegistationWrapper servletRegistationWrapper){
        listenerRegistationWrappers.add(servletRegistationWrapper);
    }

}
